﻿using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.System.Dtos.DictionaryType
{
    public class DictionaryTypeCrInput
    {
        /// <summary>
        /// 说明
        /// </summary>
        [Required(ErrorMessage = "说明不能为空")]
        public string description { get; set; }
        /// <summary>
        /// 是否树形
        /// </summary>
        [Required(ErrorMessage = "是否树形不能为空")]
        public int isTree { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        [Required(ErrorMessage = "编码不能为空")]
        public string enCode { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [Required(ErrorMessage = "名称不能为空")]
        public string fullName { get; set; }
        /// <summary>
        /// 字典分类id
        /// </summary>
        [Required(ErrorMessage = "字典分类id不能为空")]
        public string parentId { get; set; }
        public long? sortCode { get; set; }
    }
}
